// 定义通用的选项接口
export interface OptionItem {
    label: string;
    value: number | String;
    tag?: string;
}

// 订单支付方式
export const paymentMethodOptions: OptionItem[] = [
    { label: "现金支付", value: 1, tag: "primary" },
    { label: "微信支付", value: 2, tag: "primary" },
    { label: "支付宝支付", value: 3, tag: "primary" },
    { label: "银行转账", value: 4, tag: "primary" },
    { label: "多笔支付", value: 5, tag: "primary" },
    { label: "云闪付支付", value: 6, tag: "primary" }
];

// 销售订单状态
export const salesOrderStatusOptions: OptionItem[] = [
    { label: "待审批", value: 1, tag: "warning" },
    { label: "审批成功", value: 2, tag: "primary" },
    { label: "审批失败", value: 3, tag: "danger" },
    { label: "销售成功", value: 4, tag: "success" },
    { label: "已取消", value: 5, tag: "info" }
];

export const purchaseOrderStatusOptions: OptionItem[] = [
    { label: "待审批", value: 1, tag: "warning" },
    { label: "审批成功", value: 2, tag: "primary" },
    { label: "审批失败", value: 3, tag: "danger" },
    { label: "采购完成", value: 4, tag: "success" },
    { label: "已取消", value: 5, tag: "info" }
];

export const inOrderTypeOptions: OptionItem[] = [
    { label: "采购入库", value: 1, tag: "primary" },
    { label: "退换入库", value: 2, tag: "warning" },
    { label: "赠送入库", value: 3, tag: "success" }
];

export const inOrderStatusOptions: OptionItem[] = [
    { label: "待入库", value: 1, tag: "primary" },
    { label: "入库完成", value: 2, tag: "success" },
    { label: "取消入库", value: 3, tag: "info" }
];

export const outOrderTypeOptions: OptionItem[] = [
    { label: "销售出库", value: 1, tag: "primary" },
    { label: "退换出库", value: 2, tag: "warning" },
    { label: "赠送出库", value: 3, tag: "success" }
];

export const outOrderStatusOptions: OptionItem[] = [
    { label: "待出库", value: 1, tag: "primary" },
    { label: "出库完成", value: 2, tag: "success" },
    { label: "取消出库", value: 3, tag: "info" },
    { label: "已发货", value: 4, tag: "warning" }
];

export const financeStatusOptions: OptionItem[] = [
    { label: "收入", value: 1, tag: "success" },
    { label: "支出", value: 2, tag: "primary" }
];

export const statusOptions: OptionItem[] = [
    { value: 1, label: '启用', tag: "success" },
    { value: 2, label: '禁用', tag: "error" }
];

export const goodsStatusOptions: OptionItem[] = [
    { label: "在售", value: 1, tag: "success" },
    { label: "下架", value: 2, tag: "warning" },
    { label: "停产", value: 3, tag: "info" }
];

export const mappingOptions: OptionItem[] = [
    { value: 1, label: '关联', tag: "success" },
    { value: 2, label: '解耦', tag: "primary" }
];

export const whetherOptions: OptionItem[] = [
    { value: 1, label: '是', tag: "success" },
    { value: 2, label: '否', tag: "primary" }
];

export const hiddenOptions: OptionItem[] = [
    { value: 1, label: '显示', tag: "success" },
    { value: 2, label: '隐藏', tag: "primary" }
];

export const noCacheOptions: OptionItem[] = [
    { value: 1, label: '不缓存', tag: "primary" },
    { value: 2, label: '缓存', tag: "success" }
];

export const genderOptions: OptionItem[] = [
    { label: "男", value: "M", tag: "" },
    { label: "女", value: "F", tag: "" }
]